# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=safecopy
pkgver=1.7
pkgrel=6
groups=('blackarch' 'blackarch-forensic')
pkgdesc='A disk data recovery tool to extract data from damaged media.'
arch=('x86_64' 'aarch64')
url='https://sourceforge.net/projects/safecopy/files/safecopy/'
license=('GPL')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('ecba54ecc0e0dc13dd6339f8c8dc311fc3ad41ef23318c1aa2a7f6bb7f1529389bedf7b58ea72486c083d39032a6e4a775e5a555a1ff96c669fa7fbd6c1fb868')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr

  make
}

package () {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}
